package com.zte.claa.inficombo.csa.app.service.nbiot;

public class CmccNBCmdReq {
	// OneNet-url参数
	private String imei; 		//	string	是	nbiot设备的身份码
	private int obj_id;  		//	int	是	nbiot设备的object id , 对应到平台模型中为数据流id
	private int obj_inst_id; 	//	int	是	设备object下具体一个instance的id ，对应到平台模型中数据点key值的一部分
	private int res_id;  		//	int	是	nbiot设备的资源id
	private String valid_time;  //	string	否	命令开始生效时间戳，可选（不填时默认为OneNET当前时间）,格式样例：2016-08-06T08:00:00
	private String expired_time;//	string	是	命令过期时间戳，必须大于valid_time; 格式样例：2016-08-06T08:10:20
	private int retry = 3;   	//	int	否	[0 10]之间，表示失败重试次数（等待下一次设备update或者上线），默认为3
	private int timeout = 25; 	//	int	否	过期时间，填写时必须在[5,40]s之间；不填写默认为25s
	private int trigger_msg = 7;//	int	否	命令触发的上行消息类型，填写时必须在[1,7]之间；不填写默认为7
	// OneNet-post-请求参数.
	private String args;		//	string	否	命令字符串，大小限制2k
	
	public CmccNBCmdReq(){
		
	}

	public String getImei() {
		return imei;
	}

	public void setImei(String imei) {
		this.imei = imei;
	}

	public int getObj_id() {
		return obj_id;
	}

	public void setObj_id(int obj_id) {
		this.obj_id = obj_id;
	}

	public int getObj_inst_id() {
		return obj_inst_id;
	}

	public void setObj_inst_id(int obj_inst_id) {
		this.obj_inst_id = obj_inst_id;
	}

	public int getRes_id() {
		return res_id;
	}

	public void setRes_id(int res_id) {
		this.res_id = res_id;
	}

	public String getValid_time() {
		return valid_time;
	}

	public void setValid_time(String valid_time) {
		this.valid_time = valid_time;
	}

	public String getExpired_time() {
		return expired_time;
	}

	public void setExpired_time(String expired_time) {
		this.expired_time = expired_time;
	}

	public int getRetry() {
		return retry;
	}

	public void setRetry(int retry) {
		this.retry = retry;
	}

	public int getTimeout() {
		return timeout;
	}

	public void setTimeout(int timeout) {
		this.timeout = timeout;
	}

	public int getTrigger_msg() {
		return trigger_msg;
	}

	public void setTrigger_msg(int trigger_msg) {
		this.trigger_msg = trigger_msg;
	}

	public String getArgs() {
		return args;
	}

	public void setArgs(String args) {
		this.args = args;
	}

	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append("imei=").append(this.imei).append("; ");
		sb.append("obj_id=").append(this.obj_id).append("; ");
		sb.append("obj_inst_id=").append(this.obj_inst_id).append("; ");
		sb.append("res_id=").append(this.res_id).append("; ");
		sb.append("valid_time=").append(this.valid_time).append("; ");
		sb.append("expired_time=").append(this.expired_time).append("; ");
		sb.append("retry=").append(this.retry).append("; ");
		sb.append("timeout=").append(this.timeout).append("; ");
		sb.append("trigger_msg=").append(this.trigger_msg).append("; ");
		sb.append("args=").append(this.args);		
		return sb.toString();
	}
}
